
<template>
  <div class="dx-muen-container">
    <MenuLists />
    <router-view />
    <DataDetail
      v-if="detailID && region === 'super'"
      :detailID="detailID"
      :detailType="detailType"
      :datailData="datailData"
    />
  </div>
</template>

<script>
import MenuLists from "./MenuLists.vue";
import DataDetail from "./DataDetail.vue";
export default {
  name: "DxSystemManagement",
  components: {
    MenuLists,
    DataDetail,
  },
  provide: function () {
    return {
      upDataDetailId: this.upDataDetailId,
    };
  },
  data() {
    return {
      detailID: null,
      detailType: null,
      region: this.$store.getters.region,
    };
  },
  mounted() {
    // 判断是否存入
    const proNum = this.$store.getters.proNum || null;
    // this.detailID = this.$route.params.id || null;
  },
  methods: {
    upDataDetailId(obj) {
      this.detailID = obj.id;
      this.detailType = obj.type;
      this.datailData = obj.data || {};
    },
  },
};
</script>

<style lang="scss" scoped>
.dx-muen-container {
  position: relative;
  min-height: 400px;
}
</style>




